package cn.doctorpda.conference.ui.recommend;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;

import cn.doctorpda.conference.R;
import cn.doctorpda.conference.ui.BaseActivity;

/**
 * Created by huangjinlong on 2016/5/23.
 */
public class ConferenceListActivity extends BaseActivity{

    private String type = "";
    private String address = "";

    public static void startActivity(Context context, String type, String address){
        Intent intent = new Intent(context, ConferenceListActivity.class);
        intent.putExtra("type", type);
        intent.putExtra("address", address);
        context.startActivity(intent);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        type = getIntent().getStringExtra("type");
        address = getIntent().getStringExtra("address");
        super.onCreate(savedInstanceState);
    }

    @Override
    protected Fragment createFragment() {
        return ConferenceListFragment.newInstance(type, address);
    }

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_base;
    }
}
